package com.baijiaoxi.common.model.authc;

import lombok.Data;

@Data
public class UserIdChange {
    private Long weappId;
    private Long userId;
    private Long oldUserId;

    public static UserIdChange build(String msg) {
        String[] arr = msg.split(",");
        UserIdChange userIdChange = new UserIdChange();
        userIdChange.setWeappId(Long.valueOf(arr[0]));
        userIdChange.setOldUserId(Long.valueOf(arr[1]));
        userIdChange.setUserId(Long.valueOf(arr[2]));
        return userIdChange;
    }
}
